const pool = require('./db')

let service = {}

service.queryRootArea = async ()=> { 
    const [rows,fields] = await pool.query("SELECT * from art_area where pid = 0")
    return rows;
}

service.queryArarByPid = async (pid)=> { 
    const [rows,fields] = await pool.query("SELECT * from art_area where pid =?",[pid])
    return rows;
}



module.exports = service